package com.wzh.common.constant;

public class WareConstant {

    public enum PurchaseStatusEnum {
        NEW(0, "新建"),
        ALLOCATED(1, "已分配"),
        ALREADY_RECEIVED(2, "已领取"),
        OFF_THE_STOCKS(3, "已完成"),
        THERE_IS_ABNORMAL(4, "有异常");

        private String msg;
        private int code;

        PurchaseStatusEnum(int code, String msg) {
            this.msg = msg;
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    //状态[0新建，1已分配，2正在采购，3已完成，4采购失败
    public enum PurchaseDetailsEnum {
        NEW(0,"新建"),
        ALLOCATED(1,"已分配")
        ,BE_PURCHASING(2,"正在采购"),
        OFF_THE_STOCKS(3,"已完成"),
        PURCHASE_FAILED(4, "采购失败");

        private String msg;
        private int code;

        PurchaseDetailsEnum(int code, String msg) {
            this.msg = msg;
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

}
